﻿
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using PS.DataTypes;

namespace PS.Engine.GameComponents
{
    internal class Waypoint : BaseGameComponent
    {
        #region Constructors

        internal Waypoint(Game game)
            : base(game)
        {
        }

        internal Waypoint(Game game, int id, Vector2 location)
            : this(game)
        {
            Id = id;
            Location = location;
            color = Color.Green;
        }

        #endregion

        #region Properties

        public int Id { get; set; }

        public Vertex CorrespondingVertex { get; set; }

        #endregion 

        #region Lifecycle overrides

        /// <summary>
        /// Loads the specific content (e.g. texture) for the Pedestrian class.
        /// </summary>
        protected override void LoadContent()
        {
            texture = this.Game.Content.Load<Texture2D>("Waypoint");
            base.LoadContent();
        }

        #endregion
    }
}
